home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / PInterfaces / DiskInit.p < prev    next >
Encoding:
Text File  |  1993-09-17  |  1.4 KB  |  59 lines  |  [TEXT/MPS ]

  1. {
  2.     File:        DiskInit.p
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. }
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.     UNIT DiskInit;
  18.     INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingDiskInit}
  22. {$SETC UsingDiskInit := 1}
  23.  
  24. {$I+}
  25. {$SETC DiskInitIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$SETC UsingIncludes := DiskInitIncludes}
  31.  
  32. TYPE
  33. HFSDefaults = RECORD
  34.     sigWord: PACKED ARRAY [0..1] OF Byte;   { signature word}
  35.     abSize: LONGINT;                        { allocation block size in bytes}
  36.     clpSize: LONGINT;                       { clump size in bytes}
  37.     nxFreeFN: LONGINT;                      { next free file number}
  38.     btClpSize: LONGINT;                     { B-Tree clump size in bytes}
  39.     rsrv1: INTEGER;                         { reserved}
  40.     rsrv2: INTEGER;                         { reserved}
  41.     rsrv3: INTEGER;                         { reserved}
  42.     END;
  43.  
  44.  
  45. PROCEDURE DILoad;
  46. PROCEDURE DIUnload;
  47. FUNCTION DIBadMount(where: Point;evtMessage: LONGINT): INTEGER;
  48. FUNCTION DIFormat(drvNum: INTEGER): OSErr;
  49. FUNCTION DIVerify(drvNum: INTEGER): OSErr;
  50. FUNCTION DIZero(drvNum: INTEGER;volName: Str255): OSErr;
  51.  
  52.  
  53. {$ENDC}    { UsingDiskInit }
  54.  
  55. {$IFC NOT UsingIncludes}
  56.     END.
  57. {$ENDC}
  58.  
  59.